import request from "@/utils/request";
import { NoticeForm, NoticePageQuery } from "./types";
import { AxiosPromise } from "axios";

export function getNoticeList(
  query: NoticePageQuery
): AxiosPromise<PageResult<NoticeForm[]>> {
  return request({
    url: "/api/notice/list",
    method: "get",
    params: query,
  });
}
